package com.ygxsk.carhome.response;

import android.os.Parcel;
import android.os.Parcelable;

/*
 * @Author:itchenqi175@163.com
 * @Time:2023-10-31  12:01
 * @Description:一条小的合同的实体装载
 */
public class FileSignatureAgreement implements Parcelable {
    /**
     * informationId : 8
     * managerId : 62971
     * signStatus : fill_progress
     * signTaskId : 1698631089178111330
     * signTemplateId : 1698132287832171114
     * signTemplateName : 销售合同-个人
     * templateId : 2
     */

    private String informationId;
    private int managerId;
    private String signStatus;
    private String signTaskId;
    private String signTemplateId;
    private String signTemplateName;
    private int templateId;

    //是否是领导身份或者是员工身份
    private boolean identity;

    //创建时间
    private String createTime;

    public boolean isIdentity() {
        return identity;
    }

    public void setIdentity(boolean identity) {
        this.identity = identity;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    //    {
//           "informationId": 8,
//            "managerId": 62971,
//            "signStatus": "fill_progress",
//            "signTaskId": "1698631089178111330",
//            "signTemplateId": "1698132287832171114",
//            "signTemplateName": "销售合同-个人",
//            "templateId": 2
//    }

//    private String name;
//    //创建时间
//    private String createTime;
//    //合同状态
//    private String status;


    public String getInformationId() {
        return informationId;
    }

    public void setInformationId(String informationId) {
        this.informationId = informationId;
    }

    public int getManagerId() {
        return managerId;
    }

    public void setManagerId(int managerId) {
        this.managerId = managerId;
    }

    public String getSignStatus() {
        return signStatus;
    }

    public void setSignStatus(String signStatus) {
        this.signStatus = signStatus;
    }

    public String getSignTaskId() {
        return signTaskId;
    }

    public void setSignTaskId(String signTaskId) {
        this.signTaskId = signTaskId;
    }

    public String getSignTemplateId() {
        return signTemplateId;
    }

    public void setSignTemplateId(String signTemplateId) {
        this.signTemplateId = signTemplateId;
    }

    public String getSignTemplateName() {
        return signTemplateName;
    }

    public void setSignTemplateName(String signTemplateName) {
        this.signTemplateName = signTemplateName;
    }

    public int getTemplateId() {
        return templateId;
    }

    public void setTemplateId(int templateId) {
        this.templateId = templateId;
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.informationId);
        dest.writeInt(this.managerId);
        dest.writeString(this.signStatus);
        dest.writeString(this.signTaskId);
        dest.writeString(this.signTemplateId);
        dest.writeString(this.signTemplateName);
        dest.writeInt(this.templateId);
        dest.writeByte(this.identity ? (byte) 1 : (byte) 0);
        dest.writeString(this.createTime);
    }

    public void readFromParcel(Parcel source) {
        this.informationId = source.readString();
        this.managerId = source.readInt();
        this.signStatus = source.readString();
        this.signTaskId = source.readString();
        this.signTemplateId = source.readString();
        this.signTemplateName = source.readString();
        this.templateId = source.readInt();
        this.identity = source.readByte() != 0;
        this.createTime = source.readString();
    }

    public FileSignatureAgreement() {
    }

    protected FileSignatureAgreement(Parcel in) {
        this.informationId = in.readString();
        this.managerId = in.readInt();
        this.signStatus = in.readString();
        this.signTaskId = in.readString();
        this.signTemplateId = in.readString();
        this.signTemplateName = in.readString();
        this.templateId = in.readInt();
        this.identity = in.readByte() != 0;
        this.createTime = in.readString();
    }

    public static final Creator<FileSignatureAgreement> CREATOR = new Creator<FileSignatureAgreement>() {
        @Override
        public FileSignatureAgreement createFromParcel(Parcel source) {
            return new FileSignatureAgreement(source);
        }

        @Override
        public FileSignatureAgreement[] newArray(int size) {
            return new FileSignatureAgreement[size];
        }
    };
}
